package com.zq.server.api.dao;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.zq.server.api.domain.entity.ApiOrderDetail;

/**
 * @author Super
 * @description 针对表【order_detail(订单明细表)】的数据库操作Mapper
 * @createDate 2024-02-26 22:40:51
 * @Entity com.zq.daomain.entity.OrderDetail
 */
@Mapper
public interface OrderDetailMapper {


    @Select("SELECT * FROM api_order_detail WHERE order_id = #{orderId}")
    ApiOrderDetail getOrder_idOrderDetail(Long orderId);

    /**
     * 插入数据    订单明细
     *
     * @param orderDetail
     */
    void save(ApiOrderDetail orderDetail);
}
